﻿<%@ Page Title="" Theme="Default_Themes" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PhanQuyenTaiKhoan.aspx.cs" Inherits="DanhMuc_PhanQuyenTaiKhoan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="udt1" runat="server">
        <ContentTemplate>
                <div class="row-fluid">
                <div class="span12">
                    <div class="box" style="border:1px solid #B6D1F2;" >
                        <div class="box-title">
                            <h3><i class="icon-file"></i>Phân quyền tài khoản</h3>
                        </div>
                        <div class="box-content">
                            <div id="dvScreenWidth" visible="false"></div> <!--Thanh cuon ngang-->
                            <div class="GridDock" id="dvGridWidth"> <!--Thanh cuon ngang-->
                                <asp:GridView ID="grid_news" runat="server" AllowSorting="True" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" Style="margin-top: 0px" DataKeyNames="ID" PageSize="20">
                                    <AlternatingRowStyle BackColor="White" />
                                    <Columns>
                                        <asp:TemplateField HeaderText="Chức năng">
                                            <ItemTemplate>
                                                <%#Eval("Description") %>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Left" VerticalAlign="Middle" />
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Phân quyền">
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="chkselectAll" runat="server" OnCheckedChanged="chkselectAll_CheckedChanged" AutoPostBack="true"/>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chkGrant" runat="server" Checked='<%#Eval("PhanQuyen") %>' />
                                            </ItemTemplate>
                                            <ItemStyle CssClass="ItemGridCell" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <EditRowStyle BackColor="#2461BF" />
                                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#EFF3FB" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                                </asp:GridView>
                            </div>
                            <div class="" style="float:right;display:inline-block;width:auto;">
                                <asp:LinkButton ID="linkGrant" runat="server" class="btn btn-primary" OnClick="linkGrant_Click"><i class='icon-wrench'></i>&nbsp;&nbsp;Puân quyền</asp:LinkButton>&nbsp;&nbsp;
                                <asp:LinkButton ID="btnclose" Visible="true" runat="server" class="btn  btn-danger"><i class="icon-signout"></i> Đóng</asp:LinkButton>
                                <asp:Label ID="lblmessage" runat="server" ForeColor="Red"></asp:Label>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="udtprogress" runat="server" AssociatedUpdatePanelID="udt1">
        <ProgressTemplate>
            <div class="progress">
                <img src="../img/ajax-loader.gif" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>  
</asp:Content>

